﻿<%@ Page Title="" Language="C#" MasterPageFile="~/PartyFinderMP.master" AutoEventWireup="true" CodeFile="MyPartySite.aspx.cs" Inherits="Index_MyPartySite" EnableEventValidation="false"%>

<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="Server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="Server">
    <div id="MyPartysite_Header">
        <h1>
            <asp:Label ID="SiteHeader" runat="server" Text="Party navn"></asp:Label>
        </h1>
    </div>
    <div id="MyPartysite_description">
        <table>
            <tr>
                <td class="fixed">
                    <h3>Information</h3>
                </td>
                <td class="fixed2">
                    <h3>Muligheder</h3>
                </td>
            </tr>
        </table>
        <table>
            <tr>
                <td class="fixed">
                    <table class="table">
                        <tr>
                            <td style="width: 300px">
                                <asp:Label ID="LabDate" runat="server" Text="25-07-2012"></asp:Label>
                            </td>
                            <td style="width: 180px">
                                <asp:Label ID="LabTime" runat="server" Text="20:00"></asp:Label>
                            </td>
                        </tr>
                    </table>
                    <h4>Medbring</h4>
                    <table class="table">
                        <tr>
                            <td style="width: 300px">Drikkevarer:
                                <asp:Label ID="LabDrink" runat="server" Text="ja"></asp:Label>
                            </td>
                            <td style="width: 180px">Mad:
                                <asp:Label ID="LabFood" runat="server" Text="ja"></asp:Label>
                            </td>
                        </tr>
                        <tr>
                            <td>Andet:
                                <asp:Label ID="LabComment" runat="server" Text="Husk godt humør!"></asp:Label>
                            </td>
                            <td></td>
                        </tr>
                    </table>
                </td>
                <td>
                    <div>
                        <table>
                            <tr>
                                <td style="vertical-align: top">
                                    <asp:Button CssClass="btn" ID="BtnRequestParticipation" Width="240px" runat="server" Text="Ansøg om deltagelse" OnClick="BtnRequestParticipation_Click" />

                                </td>
                            </tr>
                            <tr>
                                <td>
                                    <asp:Button CssClass="btn" ID="BtnChat" Width="240px" runat="server" Text="Chat med festafholder" />
                                </td>
                            </tr>
                            <tr>
                                <td>
                                    <asp:Label ID="RequestStatus" runat="server"></asp:Label>
                                </td>
                            </tr>
                        </table>
                    </div>

                </td>
            </tr>
        </table>

    </div>
    <div id="MyPartysite_ParticipatingPeople">
        <table>
            <tr>
                <td class="fixed3">
                    <h3>Deltagere</h3>
                </td>
                <td class="fixed4"></td>
                <td>
                    <h3>Ansøgere</h3>
                </td>
            </tr>
            <tr>
                <td style="vertical-align:top">
                    <asp:ListView ID="LWParticipatingPeople" runat="server">
                        <LayoutTemplate>
                            <table class="table table-striped">
                                <tr>
                                    <asp:PlaceHolder runat="server" ID="itemPlaceHolder" />
                                </tr>
                            </table>
                        </LayoutTemplate>
                        <ItemTemplate>
                            <tr>
                                <td>
                                    <div id="MyPartysite_PersonList">
                                        <img src="/images/ProfilePhotos/<%#Eval("PictureDir") %>" width="50px" />

                                    </div>
                                </td>
                                <td>
                                    <asp:Label ID="LabName" runat="server" Text='<%#Eval("Name") %>'></asp:Label>
                                    <%#Eval("LastName") %>
                                </td>

                            </tr>

                        </ItemTemplate>
                    </asp:ListView>
                </td>
                <td></td>
                <td style="vertical-align:top">
                    <asp:ListView ID="LWApplicants" runat="server">
                        <LayoutTemplate>
                            <table class="table table-striped">
                                <tr>
                                    <asp:PlaceHolder runat="server" ID="itemPlaceHolder" />
                                </tr>
                            </table>
                        </LayoutTemplate>
                        <ItemTemplate>
                            <tr>
                                <td>
                                    <div id="MyPartysite_PersonList">
                                        <img src="/images/ProfilePhotos/<%#Eval("PictureDir") %>" width="50px" />

                                    </div>
                                </td>
                                <td>
                                    <asp:Label ID="LabName" runat="server" Text='<%#Eval("Name") %>'></asp:Label>
                                    <%#Eval("LastName") %>
                                </td>
                                <td class="fixed4"></td>
                                <td>
                                    <asp:Button ID="BtnAccept" CssClass="btn-success" runat="server" Text="Accepter" CommandName="AcceptUser" CommandArgument='<%#Eval("NotificationsId") %>' OnClick="BtnAccept_Click"/>
                                    <asp:Button ID="BtnDeny" CssClass="btn-danger" runat="server" Text="Afvis" CommandName="DenyUser" CommandArgument='<%#Eval("NotificationsId") %>' OnClick="BtnDeny_Click"/>
                                </td>
                            </tr>
                        </ItemTemplate>
                    </asp:ListView>
                </td>
            </tr>
        </table>

    </div>
</asp:Content>

